package cn.outsourcing.supermarket.mapper;

import cn.outsourcing.supermarket.common.constants.BackstageProviderConstants;
import cn.outsourcing.supermarket.provider.BackstageUserProvider;
import cn.outsourcing.supermarket.vo.backstage.BackstageUserDataInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * 后台用户 Mapper
 *
 * @author gzkemays
 * @since 2021/11/5 1:19
 */
@Mapper
public interface BackstageUserMapper {
  /**
   * 获取用户下单、成交金额等综合统计数据
   *
   * @param userId 用户 id
   * @return 统计数据
   */
  @SelectProvider(
      value = BackstageUserProvider.class,
      method = BackstageProviderConstants.BACKSTAGE_USER_ORDER_DATA_INFO)
  BackstageUserDataInfoVO getComprehensiveData(Integer userId);
}
